<?php

use Illuminate\Database\Seeder;

class ClientSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $faker = \Faker\Factory::create('zh_CN');
        $data = [];
        for ($i = 0; $i < 50; $i++) {
            $data[] = [
                'name' => $faker->unique()->company(),
                'contact' => $faker->name(),
                'telephone' => $faker->phoneNumber(),
                'address' => $faker->address()
            ];
        }
        DB::table('client')->insert($data);
    }
}
